﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Prva stranica</title>
</head>
<body>
    <form id="form1" runat="server" defaultbutton="Button1" defaultfocus="Button1">
    <div>
        <asp:Panel ID="Panel1" runat="server" Height="78px" Width="657px">
            &nbsp;
            <table style="width: 539px; height: 70px">
                <tr>
                    <td style="width: 246px; height: 11px">
                        <asp:Label ID="Label1" runat="server" Text="Naziv proizvoda:"></asp:Label></td>
                    <td style="width: 378px; height: 11px">
                        <asp:TextBox ID="TextBox1" runat="server" Width="229px"></asp:TextBox></td>
                    <td rowspan="2" style="width: 378px">
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /></td>
                </tr>
                <tr>
                    <td style="width: 246px">
                        <asp:Label ID="Label2" runat="server" Text="Cena proizvoda:"></asp:Label></td>
                    <td style="width: 378px">
                        &nbsp;<asp:DropDownList ID="DropDownList1" runat="server">
                            <asp:ListItem>Veca od</asp:ListItem>
                            <asp:ListItem>Manja od</asp:ListItem>
                        </asp:DropDownList>
                        <asp:TextBox ID="TextBox2" runat="server" Width="140px"></asp:TextBox></td>
                </tr>
            </table>
            </asp:Panel>
    
    </div>
        <asp:Panel ID="Panel2" runat="server" Height="401px" Width="656px" style="left: 12px; position: absolute; top: 168px">
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                CellPadding="4" DataSourceID="ObjectDataSource1" EmptyDataText="Nije pronadjen nijedan student."
                ForeColor="#333333" GridLines="None" Height="141px" Width="329px">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundField DataField="Name" HeaderText="Name" ReadOnly="True" SortExpression="Name">
                        <HeaderStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Surname" HeaderText="Surname" ReadOnly="True" SortExpression="Surname">
                        <HeaderStyle Width="100px" />
                    </asp:BoundField>
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
            <asp:GridView ID="GridView2" runat="server" OnSelectedIndexChanged="GridView2_SelectedIndexChanged">
            </asp:GridView>
            <asp:Button ID="Button2" runat="server" Text="Button" />
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="getStudents"
                TypeName="SajtLibrary.SajtClasses.Student">
                <SelectParameters>
                    <asp:ControlParameter ControlID="TextBox1" Name="name" PropertyName="Text" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </asp:Panel>
    </form>
</body>
</html>
